name = 'a1b2c3d4'
a = 0
for i in name:
    if i.isdigit():
        a+= 1
b = {'digit': a}
print(b)
name = 'Time Is Money'

d,e = 0,0
for i in name:
    if i.isupper():
        d+= 1
    elif i.islower():
        e+= 1
b = {'upper': d,'lower': e}
print(b)

a = 1
b = 0
while a <= 100:
    b += a
    a += 1
print(b)


import random
a = random.randint(-50,50)
if a < 0:
    print('meiyou')
elif a == 0:
    print(1)
elif a>= 1:
    b = 1
    for i in range(1,a+1):
        b = i*b
    print(b)
for i in range(2,4,2):
    for j in range(2,10,2):
        for l in range(2,10,2):
            for z in range(2, 10, 2):
                print(i*1000+j*100+l*10+z)
a = []
for i in range(2000,3201):
    if i % 7 == 0 and i % 5 != 0:
        a.append(i)
print(a)